package com.vueperson.vueperson.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@Controller
@RequestMapping("/")
public class PageController {
    @RequestMapping("/")
    public String index() {
        return "ace/index";
    }

    @RequestMapping("/h")
    public String hello() {
        return "hello";
    }
    @RequestMapping("/up")
    public String up() {
        return "upload";
    }

    @RequestMapping("/html")
    public String testHtml(Map<String,Object> map){
        map.put("name", "这是Controller中返回的话");
        return "hello";
    }

//    @RequestMapping("/{page}")
//    public String showInfo(@PathVariable String page){
//        return page;
//    }

}
